n = int(input())
str_n = str(n)[:-3]
print(int(str_n))
